package com.fjut.zr.judge_system.POJO.PO;

import java.util.Objects;

public class TOjStatusPO {
    private int id;
    private int ojId;
    private String ojName;
    private Integer ojQueue;
    private String ojStatus;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOjId() {
        return ojId;
    }

    public void setOjId(int ojId) {
        this.ojId = ojId;
    }

    public String getOjName() {
        return ojName;
    }

    public void setOjName(String ojName) {
        this.ojName = ojName;
    }

    public Integer getOjQueue() {
        return ojQueue;
    }

    public void setOjQueue(Integer ojQueue) {
        this.ojQueue = ojQueue;
    }

    public String getOjStatus() {
        return ojStatus;
    }

    public void setOjStatus(String ojStatus) {
        this.ojStatus = ojStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TOjStatusPO that = (TOjStatusPO) o;
        return id == that.id &&
                Objects.equals(ojName, that.ojName) &&
                Objects.equals(ojQueue, that.ojQueue) &&
                Objects.equals(ojStatus, that.ojStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, ojName, ojQueue, ojStatus);
    }
}
